package com.wwdx.wechat.config.miduwxma;

import com.wwdx.wechat.config.BaseWxConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 蜜读小程序配置类
 * @author liguoliang
 * @date 2018/4/17 12:01
 */
@Configuration
public class MdWxMaConfig extends BaseWxConfig {

    @Value("#{constantProperties['midu_wxma_token']}")
    private String token;
    
    @Value("#{constantProperties['midu_wxma_appid']}")
    private String appid;

    @Value("#{constantProperties['midu_wxma_appsecret']}")
    private String appsecret;
    
    @Value("#{constantProperties['midu_wxma_aeskey']}")
    private String aeskey;
    
    @Value("#{constantProperties['midu_wxma_msgDataFormat']}")
    private String msgDataFormat;

    @Override
    public String getToken() {
        return this.token;
    }

    @Override
    public String getAppid() {
        return this.appid;
    }

    @Override
    public String getAppsecret() {
        return this.appsecret;
    }

    @Override
    public String getAesKey() {
        return this.aeskey;
    }
    
    @Override
    public String getMsgDataFormat(){
        return this.msgDataFormat;
    }
}